#pragma once
#include <iostream>
#include "LNode.h"
using namespace std;
void printArr(int* arr, int length) {
	for (int i = 0; i < length; i++) {
		cout << arr[i] << " ";
	}
	cout << endl;
}

void printList(LNode* head) {
	LNode* temp = head->next;
	while (1)
	{
		cout << temp->data << " ";
		if (temp->next == NULL)
			break;
		temp = temp->next;
	}
	cout << endl;
}